const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave:false,
  transpileDependencies: true,
  devServer: {
    port: 8082,
      proxy: {
        '/api': {
          target: 'http://localhost:8080',  // 后端服务的地址
          changeOrigin: true,
          pathRewrite: {
            '^/api': ''  // 重写路径，将/api开头的路径替换为空字符串
          }
        }
      }
  }
})

